package com.lecyon.farm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lecyon.farm.base.BaseResponse;
import com.lecyon.farm.base.RestResponse;
import com.lecyon.farm.entity.FmWorkDetails;
import com.lecyon.farm.rest.IRestService;
import com.lecyon.farm.vo.add.AddFmWorkDetailsVo;
import com.lecyon.farm.vo.export.ExportFmWorkDetailsVo;
import com.lecyon.farm.vo.modify.ModifyFmWorkDetailsVo;
import com.lecyon.farm.vo.query.QueryFmWorkDetailsVo;
import com.lecyon.farm.vo.status.StatusVo;
import com.lecyon.farm.vo.view.FmWorkDetailsVo;

/**
 * 农机作业明细 Service
 *
 * @author YaoZheng
 * @since 2020-04-02
 */
public interface IFmWorkDetailsService extends IRestService<AddFmWorkDetailsVo, ModifyFmWorkDetailsVo, FmWorkDetails, QueryFmWorkDetailsVo, FmWorkDetailsVo, Page, StatusVo, ExportFmWorkDetailsVo> {

    /**
     * 获取地块数量（指定日期为昨天）
     *
     * @return
     */
    BaseResponse statisticAreaFmWorkDetailsCount();

    /**
     * 根据区域号获取昨日地块数量
     *
     * @param officeCode
     * @return
     */
    RestResponse<Integer> getAreaFmWorkDetailsCount(String officeCode);

    /**
     * 根据区域号获取昨日活动主机数量
     *
     * @param officeCode
     * @return
     */
    RestResponse<Integer> getActiveDeviceCount(String officeCode);
}
